/*
 *
 *过滤器
 */

import moment from 'moment';
import accounting from 'accounting';
export default {
  toFixed: function(val) {
    return accounting.toFixed(val, 4);
  },
  formatDate: function(value, formatString) {
    formatString = formatString || 'YYYY-MM-DD HH:mm:ss';
    return moment(value).format(formatString);
  }
};
